﻿package com.tudou.home.newskin.panel
{
    import flash.display.*;

    public class AdVideoPausePanel extends Sprite implements IAdVideo
    {
        private var adVideo:DisplayObject;
        private var adPause:DisplayObject;

        public function AdVideoPausePanel()
        {
            return;
        }// end function

        public function removeAdPause() : void
        {
            if (adPause && contains(adPause))
            {
                removeChild(adPause);
                adPause = null;
            }
            return;
        }// end function

        public function setAdPause(param1:DisplayObject) : void
        {
            removeAdPause();
            this.adPause = param1;
            addChild(param1);
            return;
        }// end function

        public function removeAdVideo() : void
        {
            if (adVideo && contains(adVideo))
            {
                removeChild(adVideo);
                adVideo = null;
            }
            return;
        }// end function

        public function setAdVideo(param1:DisplayObject) : void
        {
            removeAdVideo();
            this.adVideo = param1;
            addChild(param1);
            return;
        }// end function

    }
}
